<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="stylesheet" href="andreas08.css" type="text/css" media="screen,projection" />
<script type="text/javascript" src="/js/page.js"></script>
<?php include $_ENV["DOCUMENT_ROOT"]."/js/prototype.php" ?>
<script type="text/javascript">
function show_div(div){
	if($(div).style.display == "none")
		Effect.BlindDown(div, { duration: 2.0 });
	else
		Effect.SlideUp(div, { duration: 2.0 });
}
</script>
<title>Intranet Docenti</title>

</head>
<body>
<div id="container" >

<div id="header">
<h1>Scuola Media E. d'Arborea - Lamarmora</h1>
<h2>area riservata ai docenti</h2>
</div>

<?php include "navigation.php" ?>

<div id="content">
<h2 style="text-align: center"><?php print $commento['commento'] ?></h2>
<?php 
$id_anno = 0;
while($doc = $res_docs->fetch_assoc()){
	if($doc['link'] != "")
		$link = $doc['link'];
	else
		$link = $doc['file'];
	if($doc['doc_type'] != 4)
		$ab = $doc['abstract'];
	else
		$ab = $doc['titolo'];
	if($id_anno != $doc['anno_scolastico']){
		if($id_anno != 0)
			print("</div> <!-- chiusura anno -->");
?>
	
	<p style="margin-left: 10px; height: 15px">
		<a href="#" onclick="show_div('tipo<?php print $doc['doc_type'] ?>_anno<?php print $doc['anno_scolastico'] ?>')" style='text-decoration: none; font-weight: bold; color: #171743'>Anno scolastico <?php print $doc['descrizione'] ?></a>
	</p>
	<div id="tipo<?php print $doc['doc_type'] ?>_anno<?php print $doc['anno_scolastico'] ?>" style="display: none; margin-left: 15px">
<?php
	}
	$id_anno = $doc['anno_scolastico'];
?>
	<p style="margin-left: 25px; height: 15px">
		<a style="font-weight: normal" href="http://www.scuolamediatre.it/get_file.php?dt=<?php print $doc['doc_type'] ?>&id=<?php print $doc['id'] ?>&f=<?php print $link ?>"><?php print utf8_decode($ab) ?></a>
	</p>
<?php
}

?>
</div> <!-- chiusura anno -->
</div>
<div id="subcontent">
<?php include "menu_docs.php" ?>
</div>

<?php include "footer.php" ?>

</div>
</body>    
</html>
